From: cl349@freefall.cl.cam.ac.uk Date: Wed, 29 Sep 2004 09:39:54 +0000 (+0000) Subject: bitkeeper revision 1.1159.95.1 (415a82eauG6CiQHX1_qZWxeq5kcwrg) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17400^2~555^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=b23de08286e5324d16e53ec1d76594a9958fdb43;p=xen.git bitkeeper revision 1.1159.95.1 (415a82eauG6CiQHX1_qZWxeq5kcwrg) Fix small memory leak in block device probing code. --- diff --git a/linux-2.6.8.1-xen-sparse/drivers/xen/blkfront/vbd.c b/linux-2.6.8.1-xen-sparse/drivers/xen/blkfront/vbd.c index e7c5453c4a..4e758f7826 100644 --- a/linux-2.6.8.1-xen-sparse/drivers/xen/blkfront/vbd.c +++ b/linux-2.6.8.1-xen-sparse/drivers/xen/blkfront/vbd.c @@ -101,6 +101,8 @@ static int xlvbd_get_vbd_info(vdisk_t *disk_info) nr = MAX_VBDS; memcpy(disk_info, buf, nr * sizeof(vdisk_t)); + free_page((unsigned long)buf); + return nr; }